//
//  TaskManager.h
//  Task Views
//
//  Created by Chris Karr on 2/18/09.
//  Copyright 2009 Chris J. Karr. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <AddressBook/AddressBook.h>
#import <AddressBook/ABPeoplePickerView.h>

@interface TaskManager : NSObject 
{
	IBOutlet NSArrayController * tasks;
	IBOutlet NSDictionaryController * attributes;

	IBOutlet NSWindow * editWindow;
	IBOutlet NSPanel * attributePanel;
	IBOutlet NSTableView * attributesTable;

	IBOutlet NSTableColumn * valueColumn;

	IBOutlet NSTabView * tabs;
	
	IBOutlet NSTextField * textField;
	IBOutlet NSTextField * numberField;
	IBOutlet NSDatePicker * dateField;
	IBOutlet NSTextView * listField;
	IBOutlet ABPeoplePickerView * peopleField;
	IBOutlet NSPopUpButton * attributeType;
	
	NSString * selectedAttributeType;
}

@property(retain) NSString * selectedAttributeType;

- (IBAction) newTask:(id)sender;
- (IBAction) removeTask:(id)sender;
- (IBAction) editTask:(id)sender;

- (IBAction) addAttribute:(id)sender;
- (IBAction) removeAttribute:(id)sender;
- (IBAction) editAttribute:(id)sender;
- (IBAction) finishAttributeEdit:(id)sender;


@end
